{% extends "base.html" %}

{% block title %}e投资官网-登录{% endblock %}

{% block head %}

{% endblock %}

{% block body %}
    <div class="row mt-4">
    <div class="col"></div>
    <div class="col">
        <form action="{{ url_for("user.login") }}" method="POST">
  <div class="form-group">
    <label for="exampleInputEmail1">邮箱</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="email">
    <small id="emailHelp" class="form-text text-muted">我们不会把邮箱用于其它用户</small>
  </div>

  <div class="form-group">
    <label for="exampleInputPassword1">密码</label>
    <input type="password" name="password" class="form-control" id="exampleInputPassword1">
  </div>

   {% for message in get_flashed_messages() %}
   <div class="form-group">
       <div class="text-danger">{{ message }}</div>
   </div>
   {% endfor %}

    <div class="form-group">
  <button type="submit" class="btn btn-primary btn-block">立即登录</button>
    </div>

</form>
    </div>
    <div class="col"></div>
    </div>

{% endblock %}